package com.uuticketweb.ticket.flight.bean;

/**
 * Wrapped bean of PlaneInfo.
 * @author xiaomin
 */

import java.util.Date;

import com.uuticketweb.ticket.pojos.PlaneInfo;

public class FlightInfo {
	public static final String TYPE_TO = "to";
	public static final String TYPE_BACK = "back";
	
	private PlaneInfo planeInfo;
	private boolean[] avaiableDays;
	private Date takeoffDate;
	private Date putdownDate;
	private String type;
	private String bunk;
	
	// some temporary fields for procession
	private int takeOffTime;  // eg. 1130
	private int putDownTime;  // eg. 2250
	private int addDays; // eg. 0, 1
	
	public FlightInfo(PlaneInfo planeInfo) {
		super();
		this.planeInfo = planeInfo;
	}
	
	public FlightInfo(PlaneInfo planeInfo, boolean[] avaiableDays, Date takeoffDate, Date putdownDate) {
		super();
		this.planeInfo = planeInfo;
		this.avaiableDays = avaiableDays;
		this.takeoffDate = takeoffDate;
		this.putdownDate = putdownDate;
	}

	public boolean[] getAvaiableDays() {
		return avaiableDays;
	}
	public void setAvaiableDays(boolean[] avaiableDays) {
		this.avaiableDays = avaiableDays;
	}
	public PlaneInfo getPlaneInfo() {
		return planeInfo;
	}
	public void setPlaneInfo(PlaneInfo planeInfo) {
		this.planeInfo = planeInfo;
	}
	public Date getPutdownDate() {
		return putdownDate;
	}
	public void setPutdownDate(Date putdownDate) {
		this.putdownDate = putdownDate;
	}
	public Date getTakeoffDate() {
		return takeoffDate;
	}
	public void setTakeoffDate(Date takeoffDate) {
		this.takeoffDate = takeoffDate;
	}
	public int getAddDays() {
		return addDays;
	}
	public void setAddDays(int addDays) {
		this.addDays = addDays;
	}
	public int getPutDownTime() {
		return putDownTime;
	}
	public void setPutDownTime(int putDownTime) {
		this.putDownTime = putDownTime;
	}
	public int getTakeOffTime() {
		return takeOffTime;
	}
	public void setTakeOffTime(int takeOffTime) {
		this.takeOffTime = takeOffTime;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getBunk() {
		return bunk;
	}

	public void setBunk(String bunk) {
		this.bunk = bunk;
	}
	
	
}
